package com.tsky.yyj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @function：门店
 * @author: cainiao
 * @version 1.0
 * @time: 2011-12-15 上午10:21:51
 */
@Entity
@Table(name = "T_YYJ_STORE")
public class Store {
	@Id
	private String id;
	@ManyToOne @JoinColumn(name="area_id")
	private Area area;// @所属区域  ---> 所属城市
	private String name;// 门店名（店铺名称）
	private String address;// 地址
	private String phone;// 座机（联系电话）
	private int ticket = 0;// 优惠劵数
	private String status = "0";// 审核状态（0：待审核、1：已审核）
	@ManyToOne
	@JoinColumn(name = "sellerid")
	private Seller seller;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getTicket() {
		return ticket;
	}

	public void setTicket(int ticket) {
		this.ticket = ticket;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Seller getSeller() {
		return seller;
	}

	public void setSeller(Seller seller) {
		this.seller = seller;
	}

	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

}
